home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000158_Jdanskinner@jdanskinner.com_Tue Mar 30 09:57:14 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
3KB
Path: newsmaster.cc.columbia.edu!iad-feed.news.verio.net!peer1.stngva01.us.to.verio.net!news.verio.net!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!freenix!sn-xit-02!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: "Dan Skinner" <Jdanskinner@jdanskinner.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Trying to connect to a device console via COM 1 (no dialing modem)
Date: Tue, 30 Mar 2004 08:20:49 -0600
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <106j1mn3k72m817@corp.supernews.com>
References: <9c258be2.0403292240.2e00c890@posting.google.com> <9c258be2.0403300608.46d5097f@posting.google.com>
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Complaints-To: abuse@supernews.com
Lines: 62
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14870
To answer your question:
One needs to give Kermit permission to read the buffer.
The never ending input grants that permission, (set input echo on
grants permission to display the input on the screen.)
There are other (none better I can think of) ways to grant permission,
but something must be done to invite the input (like Alt-X.)
Regards...Dan.
"Klein Bill" <collector59ca@yahoo.com> wrote in message
news:9c258be2.0403300608.46d5097f@posting.google.com...
> Corrections:
> I've updated the script to (see capitals):
>
> *****************************
> SET MODEM TYPE NONE
> set input echo on
> def tsprompt >
> set carrier-watch off
> set line 1
> set serial 8n1
> set speed 115200
>
> OUTPUT \13
>
> if def tsprompt {
> for \%i 1 2 1 {
> input 1 \m(tsprompt)
> if success break
> output \13
> } lineout show config ;command to send
> }
> *****************************************
>
> And still Kermit exhibits the same behavior.
>
> I've made a FINAL UPDATE (the next one -> see below)
>
> ****************************************
> set input echo on
> set modem type none
> set carrier-watch off
> set line 1
> set serial 8n1
> set speed 115200
> output \13
> input 2 console>
> lineout show config
> INPUT -1 STRING_THAT_NEVER_COMES
> *****************************************
>
> And this time Kermit showed me the full interaction in command mode.
> Why isn't it possible to obtain the interaction dialog in command mode
> without having an endless waiting condition at the end of the script ?
> Why set input echo on is not enough? If it is possible to get the
> interaction in command mode without the "STRING_THAT_NEVER_COMES" part
> I'd like to know the way.
>
> Please anybody help.
> Thanks in advance